package top.pengdong.pictureShare.userAuth.feign.tweet;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.pengdong.pictureShare.common.model.R;

import java.util.List;

/**
 * @description:
 * @projectName: pictureShare
 * @see: top.pengdong.pictureShare.userAuth.feign.tweet
 * @author: pc
 * @createTime: 2022/5/3 14:35
 * @version: 1.0
 */
@FeignClient(value = "spring-cloud-tweet-server")
public interface TweetFeignServer {

	@GetMapping("/api/tweet/user_share_view_collection_type")
	Object getUserInfoTweets(@RequestParam("uid") Long uid, @RequestParam("type") Integer type,
									  @RequestParam("page") Integer page, @RequestParam("limit") Integer limit);

	@GetMapping("/api/tweet/user_tweets")
	Object getUserTweets(@RequestParam("uid") Long uid,
							 @RequestParam("page") Integer page, @RequestParam("limit") Integer limit);
}
